package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DataConversionInfoMapper;
import com.ruoyi.system.domain.DataConversionInfo;
import com.ruoyi.system.service.IDataConversionInfoService;
import com.ruoyi.common.core.text.Convert;

/**
 * 数据转换记录查询Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-04-13
 */
@Service
public class DataConversionInfoServiceImpl implements IDataConversionInfoService 
{
    @Autowired
    private DataConversionInfoMapper dataConversionInfoMapper;

    /**
     * 查询数据转换记录查询
     * 
     * @param id 数据转换记录查询ID
     * @return 数据转换记录查询
     */
    @Override
    public DataConversionInfo selectDataConversionInfoById(Long id)
    {
        return dataConversionInfoMapper.selectDataConversionInfoById(id);
    }

    /**
     * 查询数据转换记录查询列表
     * 
     * @param dataConversionInfo 数据转换记录查询
     * @return 数据转换记录查询
     */
    @Override
    public List<DataConversionInfo> selectDataConversionInfoList(DataConversionInfo dataConversionInfo)
    {
        return dataConversionInfoMapper.selectDataConversionInfoList(dataConversionInfo);
    }

    /**
     * 新增数据转换记录查询
     * 
     * @param dataConversionInfo 数据转换记录查询
     * @return 结果
     */
    @Override
    public int insertDataConversionInfo(DataConversionInfo dataConversionInfo)
    {
        return dataConversionInfoMapper.insertDataConversionInfo(dataConversionInfo);
    }

    /**
     * 修改数据转换记录查询
     * 
     * @param dataConversionInfo 数据转换记录查询
     * @return 结果
     */
    @Override
    public int updateDataConversionInfo(DataConversionInfo dataConversionInfo)
    {
        return dataConversionInfoMapper.updateDataConversionInfo(dataConversionInfo);
    }

    /**
     * 删除数据转换记录查询对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteDataConversionInfoByIds(String ids)
    {
        return dataConversionInfoMapper.deleteDataConversionInfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除数据转换记录查询信息
     * 
     * @param id 数据转换记录查询ID
     * @return 结果
     */
    @Override
    public int deleteDataConversionInfoById(Long id)
    {
        return dataConversionInfoMapper.deleteDataConversionInfoById(id);
    }
}
